package com.bridgeQQ.client.control.commands
{
	import com.bridgeQQ.client.core.ICommand;
	import com.bridgeQQ.client.view.window.AddFriendWindow;
	
	import flash.display.Screen;
	import flash.geom.Rectangle;
	
	import mx.core.Window;

	public class RequestFriendCommand implements ICommand
	{
		public function RequestFriendCommand()
		{
		}

		public function execute():void
		{
			var window:Window = new AddFriendWindow();
			window.open();
			var screen:Rectangle = Screen.mainScreen.bounds;
			window.move((screen.width - window.width) / 2, (screen.height - window.height) / 2);
		}
		
	}
}